package com.ruoyi.system.domain.quality;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author GE-LV5
 * @create 2023/2/25 17:49
 * 成品检验单
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("quality_finished_examine")
public class QualityFinishedExamine extends QualityDetailedTable  {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @Excel(name = "序号")
    private Long id;


    @ApiModelProperty(value = "质量单号")
    @Excel(name = "质量单号")
    private String qualityNumber ;


    @ApiModelProperty(value = "产品名称")
    @Excel(name = "产品名称")
    private String product;

    @ApiModelProperty(value = "检查日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "检查日期")
    private Date  checkDate;

    @ApiModelProperty(value = "判定OK/NG")
    @Excel(name = "判定OK/NG")
    private String determine ;

    @ApiModelProperty(value = "检验数量")
    @Excel(name = "检验数量")
    private Integer checkoutNumber ;

    @ApiModelProperty(value = "合格数")
    @Excel(name = "合格数")
    private Integer acceptanceNumber;

    @ApiModelProperty(value = "不合格数")
    @Excel(name = "不合格数")
    private Integer belowStandard;


    @ApiModelProperty(value = "单据类型")
    @Excel(name = "单据类型")
    private String  priceType ;

    /** 创建者 */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /** 更新者 */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String status;

    @ApiModelProperty(value = "图片地址")
    @Excel(name = "图片地址")
    private String url;

}
